Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the INotifyCollectionChaneged to IE<TView> from IE<(T, View)> #25

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

hadashiA
Copy link
Contributor

@hadashiA hadashiA commented Feb 15, 2024

#7

The current implementation of INotifyCollectionChanged (for WPF) is IEnumerable<(T, TVIEW)>.
This PR change this to IEnumerable<TView>.

This is because it is the INotifyCOllectionChanged interface is for binding.

The following breaking changes are included ..!

  • Change INotifyCollectionChangedSynchronizedView to IEnumerable<TView> instead of IEnumerable<(T, TView)>.
  • Also, INotifyCollectionChanegdSynchronizedView is no longer ISynchoronizedView<T, TView>.
    • AttachFilter will no longer be possible, but can be applied to the source View before conversion.
  • Rename ISynchronizedView.WithINotifyCollectionChanged to .ToNotifyCollectionChanged.
    • This is because it is no longer SynchornizedVIew after conversion.

@hadashiA hadashiA force-pushed the hadashiA/fix-notify-collection-changed branch from 18aa9e4 to e2dcbd8 Compare February 15, 2024 05:12
@hadashiA hadashiA marked this pull request as ready for review February 15, 2024 05:17
@neuecc neuecc merged commit 4023a28 into master Feb 15, 2024
1 check passed
@neuecc neuecc deleted the hadashiA/fix-notify-collection-changed branch February 15, 2024 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants